home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #ifndef SMTPTstUH
- #define SMTPTstUH
- //---------------------------------------------------------------------------
- #include <vcl\Classes.hpp>
- #include <vcl\Controls.hpp>
- #include <vcl\StdCtrls.hpp>
- #include <vcl\Forms.hpp>
- #include <vcl\NMsmtp.hpp>
- #include <vcl\Psock.hpp>
- #include <ComCtrls.hpp>
- //---------------------------------------------------------------------------
- class TMainForm : public TForm
- {
- __published: // IDE-managed Components
- TNMSMTP *SMTP;
- TButton *ConnectBtn;
- TButton *DisconnectBtn;
- TButton *SendBtn;
- TLabel *Label1;
- TEdit *ToEdit;
- TLabel *Label2;
- TEdit *FromEdit;
- TLabel *Label3;
- TEdit *SubjectEdit;
- TLabel *Label4;
- TMemo *Message;
- TStatusBar *StatusBar;
- void __fastcall ConnectBtnClick(TObject *Sender);
- void __fastcall SMTPSuccess(TObject *Sender);
- void __fastcall SMTPFailure(TObject *Sender);
- void __fastcall SendBtnClick(TObject *Sender);
- void __fastcall DisconnectBtnClick(TObject *Sender);
-
-
- void __fastcall SMTPConnect(TObject *Sender);
- void __fastcall SMTPDisconnect(TObject *Sender);
- private: // User declarations
- public: // User declarations
- __fastcall TMainForm(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TMainForm *MainForm;
- //---------------------------------------------------------------------------
- #endif
-